package com.atguigu.gmall.product.mapper;

import com.atguigu.entity.BaseSaleAttr;
import com.atguigu.entity.SpuSaleAttr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * spu销售属性 Mapper 接口
 * </p>
 *
 * @author 冇有
 * @since 2021-09-16
 */
@Repository
public interface SpuSaleAttrMapper extends BaseMapper<SpuSaleAttr> {

    List<SpuSaleAttr> spuSaleAttrList(Long spuId);
    List<BaseSaleAttr>
     selectSpuSaleAttrListCheckBySku(@Param("skuId") Long skuId,@Param("spuId") Long spuId);


    List<Map> getSaleAttrValuesBySpu(Long spuId);
}
